﻿using System;
using Autodesk.Revit.DB;

namespace YJKFurniture.LayoutFurnitures
{
	internal class FurnitureInfo
	{
		public FurnitureInfo()
		{
		}

		public FurnitureInfo(int id, string name, string family, string familySymbol, string category, string version)
		{
			this.m_nId = id;
			this.m_strName = name;
			this.m_strFamily = family;
			this.m_strFamilySymbol = familySymbol;
			this.m_strCategory = category;
			this.m_strVersion = version;
			if (!familySymbol.Contains("_2D"))
			{
				this.m_b2D = false;
			}
		}

		public FurnitureInfo(FamilySymbol familySymbol, string category)
		{
			this.m_strFamily = familySymbol.Name + ".rfa";
			this.m_strFamilySymbol = familySymbol.Name;
			this.m_fs = familySymbol;
			this.m_strCategory = category;
			if (!familySymbol.Name.Contains("_2D"))
			{
				this.m_b2D = false;
			}
		}

		public int m_nId;

		public string m_strName;

		public string m_strFamily;

		public string m_strFamilySymbol;

		public string m_strCategory;

		public string m_strVersion;

		public FamilySymbol m_fs;

		public bool m_b2D = true;
	}
}
